package com.chenchen.tiguan.venue.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.chenchen.tiguan.common.annotation.Excel;
import com.chenchen.tiguan.common.core.domain.BaseEntity;

/**
 * 预生成的场地可预约时间段对象 venue_time_slot
 * 
 * @author chenchen
 * @date 2025-04-14
 */
public class VenueTimeSlot extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 时间段唯一标识 */
    private Long slotId;

    /** 关联场地ID（需应用层校验） */
    @Excel(name = "关联场地ID", readConverterExp = "需=应用层校验")
    private Long courtId;

    /** 所属日期（如2023-10-01） */

    @Excel(name = "所属日期", readConverterExp = "如=2023-10-01")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;

    /** 开始时间（如08:00） */
    @Excel(name = "开始时间", readConverterExp = "如=08:00")
    @JsonFormat(pattern = "HH:mm")
    private Date startTime;

    /** 结束时间（如10:00） */
    @JsonFormat(pattern = "HH:mm")
    @Excel(name = "结束时间", readConverterExp = "如=10:00")
    private Date endTime;

    /** 状态（1可预约，2已预约，3关闭） */
    @Excel(name = "状态", readConverterExp = "1=可预约，2已预约，3关闭")
    private Long status;

    private VenueCourt venueCourt;

    public VenueCourt getVenueCourt() {
        return venueCourt;
    }

    public void setVenueCourt(VenueCourt venueCourt) {
        this.venueCourt = venueCourt;
    }

    public void setSlotId(Long slotId)
    {
        this.slotId = slotId;
    }

    public Long getSlotId() 
    {
        return slotId;
    }
    public void setCourtId(Long courtId) 
    {
        this.courtId = courtId;
    }

    public Long getCourtId() 
    {
        return courtId;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("slotId", getSlotId())
            .append("courtId", getCourtId())
            .append("date", getDate())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("venueCourt",getVenueCourt())
            .toString();
    }
}
